<?php
defined('BASEPATH') OR exit('No direct script access allowed');

class Share_ajax extends MY_Controller {
	function __construct(){
		parent::__construct();
	}

	public function share(){
    $post_data = $this->input->post();
    if($post_data){
        $share = array(
          'user_id' => $this->user_data['id'],
          'share_where' => $post_data['share_where'],
          'share_url' => $post_data['share_url'],
          'share_what' => $post_data['share_what'],
          'school_id' => $this->school_id,
          'course_id' => 0,
          'status' => 1,
          'add_time' => time()
         );
         $this->db->insert('user_share',$share);
    }

	}


}
